home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / Gadgets / CPallette.h < prev    next >
Text File  |  1996-03-19  |  1KB  |  54 lines

  1. // CPallette.h -- window class
  2. // Created 3/19/96 12:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LWindow.h>
  7. #include <LListener.h>
  8.  
  9. class    CGadgetsData;
  10. class    LStream;
  11.  
  12. class    LStdControl;
  13.  
  14. //----------
  15. class    CPallette :    public LWindow,
  16.                         public LListener {
  17. public:
  18.     static    CPallette*    CreatePallette        (LCommander            *inSuperCommander,
  19.                                                      CGadgetsData    *inData);
  20.  
  21.     static    CPallette*    CreatePalletteStream    (LStream    *inStream);
  22.  
  23.                         CPallette();
  24.                         CPallette        (LStream    *inStream);
  25.     virtual                ~CPallette();
  26.  
  27.     virtual void        ListenToMessage        (MessageT    inMessage,
  28.                                              void        *ioParam);
  29.  
  30.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  31.                                              void        *ioParam = nil);
  32.     virtual void        FindCommandStatus    (CommandT    inCommand,
  33.                                              Boolean    &outEnabled,
  34.                                              Boolean    &outUsesMark,
  35.                                              Char16        &outMark,
  36.                                              Str255        outName);
  37.     virtual Boolean        FocusDraw();
  38.  
  39. protected:
  40.     static    void        RegisterClass();
  41.     virtual void        FinishCreateSelf();
  42.     virtual void        ConnectToData    (CGadgetsData    *inData);
  43.  
  44. protected:
  45.  
  46. protected:
  47.     static Boolean        sIsRegistered;
  48.  
  49.     CGadgetsData        *mData;
  50.  
  51. // Panes in this window:
  52.     LStdControl*        mToolsPalette;
  53. };
  54.